package com.xinqi.modules.sys.textbook.dto.req;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 云课本章节目录是否重名-请求对象-新增
 *
 * @author: linkai
 * @date: 2023/04/25
 */
@Data
@Schema(description = "云课本章节目录是否重名-请求对象-新增")
public class CloudTextbookCatalogIsExistsNameDTO implements Serializable {

    /**
     * 云课本id
     */
    @Schema(description = "目录id", example = "")
    private Long id;
    /**
     * 名称
     */
    @Schema(description = "名称", example = "")
    @NotBlank(message = "名称不能为空")
    private String name;
    /**
     * 云课本ID
     */
    @Schema(description = "云课本ID", example = "")
    @NotBlank(message = "云课本ID不能为空")
    private Long textbookId;
    /**
     * 父id
     */
    @Schema(description = "父id", example = "")
    private Long pid;
}
